package com.canyou.archives.mapper;

import com.canyou.archives.model.Archives;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.canyou.archives.model.po.ArchivesInformationPO;
import com.canyou.archives.model.po.ArchivesPagePO;
import com.canyou.archives.model.po.PageArchivesResponsePO;

import java.util.List;

/**
 * <p>
 * 设备档案 Mapper 接口
 * </p>
 *
 * @author canyou
 * @since 2021-12-07
 */
public interface ArchivesMapper extends BaseMapper<Archives> {
    //根据条件获得设备总数
    long getEquArchivesTotal(ArchivesPagePO pagePO);
    //根据条件获得设备每页数量
    List<PageArchivesResponsePO> getEquArchivesRecords(ArchivesPagePO pagePO);
    //根据id获得详细信息
    ArchivesInformationPO getArchivesInformationById(Long deviceId);
}
